<template>
  <div class="vue-box sbot" >
    <!-- ------- 内容部分 ------- -->
    <div class="c-panel">
      <el-form v-if="m" :inline="true">
        <sa-info name="序号" :value="m.id" br/>
        <sa-info type="text"name="模板名称" :value="m.name" br/>
        <sa-info type="text"name="模板编码" :value="m.templateCode" br/>
        <sa-info type="text"name="模板内容" :value="m.templateText" br/>
        <sa-info type="enum" name="所属服务" :jv="dims.SD" :value="m.sid" br />
        <sa-info type="enum" name="短信来源" :jv="dims.SMS_SOURCE" :value="m.sourceType" br />
        <sa-info type="enum" name="短信类型" :jv="dims.SMS_TYPE" :value="m.type" br />

        <sa-info type="text"name="APPKEY" :value="m.appKey" br/>
        <sa-info type="text"name="APPSECRET" :value="m.appSecret" br/>
        <sa-info type="text"name="SMSAPI" :value="m.api" br/>
        <sa-info type="text"name="签名" :value="m.sign" br/>
        <sa-info type="text"name="服务区域列" :value="m.region" br/>
        <sa-info type="enum" name="启用状态" :jv="dims.YES_OR_NO" :value="m.status" br />
        <sa-info type="datetime" name="创建时间" :value="m.createTime" br/>
        <sa-info name="描述" br>{{ m.note }}</sa-info>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  name: 'sms-temp-info',
  props: { param: Object },
  data() {
    return {
      id: this.param.id,
      dims: this.param.dims,
      sa: sa,
      m: {}
    }
  },
  created: function () {
    sa.ajax('/sms/template/getById', { id: this.id }, function (res) {
      this.m = res.data;
    }.bind(this), { type: "get" });
  },
  methods: {}
}
</script>

<style scoped>
</style>
